package com.cjf.demo.thymeleaf;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class HomeController
{

	@RequestMapping(value = "/hello", method = RequestMethod.GET)
	public String login(Model model)
	{
		model.addAttribute("msg", "中华人民共和国");
		return "hello";
	}

	 
 
}
